﻿using Entity.BaseEntitys;
using Entity.BaseSplit;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{

    [Index(nameof(UserName),nameof(EmailAddress), nameof(Phone))] 
    public class User: DeleteEntity<Guid>
    {

     
        [StringLength(256)]
        public string UserName { get; set; } = "";

   
        [StringLength(256)]
        public string PassWord { get; set; } = "";

   
        [StringLength(256)]
        [EmailAddress]
        public string EmailAddress { get; set; } = "";

        [StringLength(256)]
        public string Phone { get; set; } = "";
    }

   
    public class UserSplitDataSourceRoute: BaseSplitDataSourceRoute<User, Guid>
    {

    }
}
